package com.wei;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @Author :sunwei
 * @Description:
 * @Date create in 8:51  2021/4/13
 * @Modified by:
 */
public class GCRootsTest {
    public static void main(String[] args) {
        List list = new ArrayList<>();
        Object obj = new Object();

        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        Scanner scanner = new Scanner(System.in);
        System.out.println("Input some stuff!!");
        scanner.hasNext();
        list = null;
        obj = null;

        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        Scanner scanner1 = new Scanner(System.in);
        System.out.println("exit");
        scanner1.hasNext();
        scanner.close();
        scanner1.close();
    }
}
